<script setup>
import UserMenu from './menu.vue';
import { SettingOutlined } from '@ant-design/icons-vue';
</script>

<template>
  <header class="sys-header">
    <h1>数据标注平台</h1>
    <router-link
      to="/user-manage"
      role="button"
      class="sys-manage-btn"
      type="ghost"
      size="large">
      <template #icon><setting-outlined style="color: #fff;" /></template>
    </router-link>
    <user-menu></user-menu>
  </header>
</template>

<style>
.sys-header {
  grid-column: span 2;
  display: flex;
  align-items: center;
  height: 60px;
  padding-left: 1em;
  padding-right: 1em;
  color: #fff;
  background: rgb(0,40,77);
}

.sys-header > h1 {
  margin: 0;
  font-weight: bold;
  font-size: 28px;
  color: inherit;
}

.sys-header > .user {
  display: flex;
  align-items: center;
  margin-left: auto;
  font-size: 14px;
  cursor: default;
}

.sys-header > .ant-dropdown-trigger {
  margin-left: auto;
}

.sys-manage-btn {
  position: absolute;
  right: 170px;
  padding: 0;
  border: 0;
}
</style>
